
import java.io.PrintWriter;


public class Sendempty extends Thread {
	
	  PrintWriter[] out = null;
	  Integer playersnumber;
	public Sendempty(
	  PrintWriter[] out, Integer playernumber) {
    	
    	
    	this.out=out;
    	this.playersnumber=playernumber;
    	
    	
      }
	
	 public void run()  
	    {  
	        try  
	        {  
	        	Integer badnumer=0;   
	              
	            while(badnumer<=playersnumber)  
	            { 
	            	
	            	 
	            	for(int i=0; i<playersnumber; i++)
					{  if(out[i].checkError()==false)  out[i].println("wait");
					   else  ++badnumer;
	 			
					}
	            		
      			 sleep(20000);
	            }  
	        }  
	        catch(Exception e)  
	        {  
	           
	        }  
	    }  
	
	
	
	
	
}
